import request from '@/utils/request'

// 登录
export const handlelogin = (username,password) => {
  return request.post('/admin/login',{
      username,
      password
  })
}

export const handleregister=(username,password,phone)=>{
  return request.post('/admin/register',{
      username,
      password,
      phone
  })
}